<%@ page language="java" pageEncoding="UTF-8"%>
	<%@include file="/views/common/include/taglib.jsp"%>
	
	<script src="${ctx}/js/controllers/system/menu/MenuListController.js" type="text/javascript"></script>
	
	<script type="text/javascript">
		var ctx = '${ctx}';
		
		setCtx(ctx);
		
		//测试发邮件方法
		function sendEmail(){
			var emails = ["735569870@qq.com"];
			var content = "测试邮件";
			var subject = "邮件主题";
			
			$.ajax({
				url: ctx + "/sendEmail",
				traditional: true,
				data: {
					emails: emails,
					content: content,
					subject: subject
				},
				type: "GET",
				dataType:'json',
				contentType:"application/json",
				success:function(data){
					if(data.success){
						tip(data.msg);
					}
				},
				error:function(er){BackErr(er);}
			});
			
		}
	</script>

	<style type="text/css">
		.img{
			/* position: relative; */
			top: 30px;
			left: 20px;
		}
	</style>	
	          <div style="height:40px;line-height: 40px;">
	                <div class="forword_area"></div>
					<div class="location">当前位置：${sessionScope.currcent_position}</div>

              </div>
              <hr>
              <div style="margin-bottom: 20px;"></div>
            <img width="100%" class="img" src="${graphURL}" border=0 usemap="#${filename }"> 
            <br>
            
            <div style="position: relative;top: 50px;width: 70%;">
            	<form style="position: relative;top: 30px;">
            		<!-- 图文混排容器 -->
	            	<script id="container" name="content" type="text/plain"></script>
	            	<!-- =========================== -->
	            	<button type="button" onclick="save();">获取图文混排内容</button>
	            	<button type="button" onclick="sendEmail();">发送邮件</button>
	            </form>
            
            </div>
            <!-- 配置文件 -->
	<script type="text/javascript" src="${ctx }/js/lib/ueditor/ueditor.config.js"></script>
	<!-- 编辑器源码文件 -->
	<script type="text/javascript" src="${ctx }/js/lib/ueditor/ueditor.all.js"></script>
	<script type="text/javascript" src="${ctx }/js/lib/ueditor/ueditor.parse.js"></script>
	<!-- 实例化编辑器 -->
	<script type="text/javascript">
		var ue = UE.getEditor('container',{
			toolbars : [
				       	  ['fontfamily','fontsize', '|', 'blockquote', 'horizontal', '|', 'removeformat', '|', 'insertimage'],
				       	  ['bold', 'italic', 'underline', 'forecolor', 'backcolor', '|',
				       	   'justifyleft', 'justifycenter', 'justifyright', '|',
				       	   'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
				       	   'insertorderedlist', 'insertunorderedlist', '|',
				       	   'imagenone', 'imageleft', 'imageright', 'imagecenter','autotypeset','cleardoc','source'
				       	   ]
				       	],
			UEDITOR_HOME_URL: '${ctx}/js/lib/ueditor/',
			serverUrl: '${ctx}/fileHandler/upLoaderMergeForUeditor',
			//imageUrlPrefix: '${ctx}/fileHandler/getFileForUeditor?fileName=',
			imageUrlPrefix: '${sessionScope.image_logo}',
			imageActionName: 'uploadimage',
			imageFieldName: 'file',
			imageMaxSize: 1024000,
			imageAllowFiles: ['.png', '.jpg', '.jpeg', '.gif'], 
			initialFrameHeight: 400,
			elementPathEnabled: false,
			retainOnlyLabelPasted:true,
			wordCount: false,
			sourceEditor: 'textarea',
			insertorderedlist: {
				// 系统自带
				'decimal': '',     // '1,2,3...'
				'lower-alpha': '', // 'a,b,c...'
				'lower-roman': '', // 'i,ii,iii...'
				'upper-alpha': '', // 'A,B,C'
				'upper-roman': ''  // 'I,II,III...'
			},
			insertunorderedlist : {
				// 系统自带
				'circle': '',  // '○ 小圆圈'
				'disc': '',    // '● 小圆点'
				'square': ''   // '■ 小方块'
			},
			listDefaultPaddingLeft: '50'
		});
		
		function save(){
			var content = ue.getContent();
		}
		
		</script>
